package deepr.core;

import deepr.anno.SchemaType;
import deepr.handler.Handler;
import deepr.handler.SchemaHandler;
import lombok.Data;

import java.util.HashMap;

@Data
public class SchemaData {

  private String name;
  private String primaryKey;
  private String object;
  private SchemaType schemaType;
  private HashMap<String, PropertyData> fields;
  private Class<?> handler;


  public void setObject() {
    object = name.toLowerCase();
  }

  public PropertyData getPropertyData(String property) {
    return fields.get(property);
  }
}
